/**
 * Copyright(c) 2015 Jade Techonologies Co., Ltd.
 *
 * History:
 *   15-1-17 上午11:09 Created by lyyang
 */
package com.jade.framework.security.shiro.authc;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * sessionid shiro token,
 *
 * @author <a href="mailto:lyyang@jade.com">lyyang</a>
 * @version 1.0 15-1-17 上午11:09
 */
public class SessionIdToken
        implements AuthenticationToken
{
    /**
     * 用户名
     */
    private String userName;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 组织机构
     */
    private String organization;
    /**
     * 访问令牌
     */
    private String accessToken;

    /**
     * 令牌名称
     */
    public final static String TOKEN_NAME = "Authorization";



    public String sessionId;

    public String getSessionId()
    {
        return sessionId;
    }

    public void setSessionId(String sessionId)
    {
        this.sessionId = sessionId;
    }

    public Object getPrincipal()
    {
        return sessionId;
    }

    public Object getCredentials()
    {
        return sessionId;
    }
}
